#!/usr/bin/env python
import sys,os
def main(argv):
    this_dir=os.path.dirname(__file__)
    this_name=os.path.basename(argv[0])
    sys.path.insert(0,os.path.join(this_dir,'amtools.zip'))
    if this_name=='adb.py':
        import adb.adb_debug as adb
        return adb.main()
    if this_name=='fastboot.py':
        import adb.fastboot_debug
        return adb.fastboot_debug.main()
    if this_name=='amusb.py':
        import amusb
        return amusb.main()
if __name__ == '__main__':
    sys.exit(main(sys.argv))
